#pragma once

class CSvrMgr;
class CServer;
class CModMgr;

class CMainProc
{
public:
    CMainProc();
    ~CMainProc();

public:
    bool Init();
    bool Start();
    bool Stop();
    void Destroy();

private:
    bool CreateMainSvr(CServer **pSvr);
    bool CreateWorkSvr(CServer **pSvr);

private:
    bool m_bMainSvr;
    unsigned int m_nCore;

    CSvrMgr *m_pSvrMgr;
    CModMgr *m_pModMgr;
    CServer *m_pSvr;
};
